<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TLocaleInfos类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_locale_infos.html">TLocaleInfos</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_locale_infos-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">awtk.TLocaleInfos类 参考</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ac9328637f55bad763059bc6e9c401784" id="r_ac9328637f55bad763059bc6e9c401784"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac9328637f55bad763059bc6e9c401784">ref</a> (String name)</td></tr>
<tr class="separator:ac9328637f55bad763059bc6e9c401784"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08159d95c729689a0253ffe0202a88d1" id="r_a08159d95c729689a0253ffe0202a88d1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a08159d95c729689a0253ffe0202a88d1">unref</a> (<a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a> locale_info)</td></tr>
<tr class="separator:a08159d95c729689a0253ffe0202a88d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40fe5d538c8e541c236ba6959f3fa866" id="r_a40fe5d538c8e541c236ba6959f3fa866"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a40fe5d538c8e541c236ba6959f3fa866">change</a> (String language, String country)</td></tr>
<tr class="separator:a40fe5d538c8e541c236ba6959f3fa866"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1c04052765df21c3b3082529fe636b5" id="r_ae1c04052765df21c3b3082529fe636b5"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae1c04052765df21c3b3082529fe636b5">on</a> (<a class="el" href="enumawtk_1_1_t_event_type.html">TEventType</a> type, TOnEvent on_event, long ctx)</td></tr>
<tr class="separator:ae1c04052765df21c3b3082529fe636b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9569d86688e4087bd640b8c802e688ab" id="r_a9569d86688e4087bd640b8c802e688ab"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9569d86688e4087bd640b8c802e688ab">off</a> (int id)</td></tr>
<tr class="separator:a9569d86688e4087bd640b8c802e688ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19d5613ad979bc67f2716ede5feb13ea" id="r_a19d5613ad979bc67f2716ede5feb13ea"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a19d5613ad979bc67f2716ede5feb13ea">reloadAll</a> ()</td></tr>
<tr class="separator:a19d5613ad979bc67f2716ede5feb13ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>在某些情况下，需要多个资源管理器。比如在手表系统里，每个应用或表盘，可能放在独立的资源包中， 此时优先加载应用自己的资源，如果没有就加载系统的资源。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a40fe5d538c8e541c236ba6959f3fa866" name="a40fe5d538c8e541c236ba6959f3fa866"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40fe5d538c8e541c236ba6959f3fa866">&#9670;&#160;</a></span>change()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TLocaleInfos.change </td>
          <td>(</td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>language</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>country</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置全部locale_info的当前国家和语言。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">language</td><td>语言。 </td></tr>
    <tr><td class="paramname">country</td><td>国家或地区。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9569d86688e4087bd640b8c802e688ab" name="a9569d86688e4087bd640b8c802e688ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9569d86688e4087bd640b8c802e688ab">&#9670;&#160;</a></span>off()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TLocaleInfos.off </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>id</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>注销指定事件的处理函数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>locale_infos_on返回的ID。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae1c04052765df21c3b3082529fe636b5" name="ae1c04052765df21c3b3082529fe636b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1c04052765df21c3b3082529fe636b5">&#9670;&#160;</a></span>on()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int awtk.TLocaleInfos.on </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="enumawtk_1_1_t_event_type.html">TEventType</a></td>          <td class="paramname"><span class="paramname"><em>type</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TOnEvent</td>          <td class="paramname"><span class="paramname"><em>on_event</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>ctx</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>注册指定事件的处理函数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>事件类型，目前有EVT_LOCALE_INFOS_LOAD_INFO、EVT_LOCALE_INFOS_UNLOAD_INFO。 </td></tr>
    <tr><td class="paramname">on_event</td><td>事件处理函数。 </td></tr>
    <tr><td class="paramname">ctx</td><td>事件处理函数上下文。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回id，用于locale_infos_off。 </dd></dl>

</div>
</div>
<a id="ac9328637f55bad763059bc6e9c401784" name="ac9328637f55bad763059bc6e9c401784"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9328637f55bad763059bc6e9c401784">&#9670;&#160;</a></span>ref()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a> awtk.TLocaleInfos.ref </td>
          <td>(</td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>name</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取指定小应用程序(applet)的locale_info。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>小应用程序(applet)的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回locale_info对象。 </dd></dl>

</div>
</div>
<a id="a19d5613ad979bc67f2716ede5feb13ea" name="a19d5613ad979bc67f2716ede5feb13ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19d5613ad979bc67f2716ede5feb13ea">&#9670;&#160;</a></span>reloadAll()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TLocaleInfos.reloadAll </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>重新加载全部字符串资源。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a08159d95c729689a0253ffe0202a88d1" name="a08159d95c729689a0253ffe0202a88d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08159d95c729689a0253ffe0202a88d1">&#9670;&#160;</a></span>unref()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TLocaleInfos.unref </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a></td>          <td class="paramname"><span class="paramname"><em>locale_info</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>释放指定小应用程序(applet)的locale_info。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale_info</td><td>locale_info对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<b>TLocaleInfos.java</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>
